import { KingChampionShipResultTabBase } from "./KingChampionShipResultTabBase";
import { ObjCreate } from "../../../common/ObjCreate";
import { ImagesConst } from "../../../../resource/ImagesConst";
import { Language } from "../../../../../../extend/language/Language";
import { PageSelectCenter } from "../../../common/pageSelect/PageSelectCenter";
import { KingChampionShipResultTabRender1 } from "../render/KingChampionShipResultTabRender1";
import { GBoxDirection } from "../../../../../../com/mui/containers/globalVariable/GBoxDirection";
import { PageSelecter } from "../../../common/pageSelect/PageSelecter";
//class KingChampionShipResultTab1
    
    export  class KingChampionShipResultTab1 extends KingChampionShipResultTabBase
    {
        constructor()
        {
            super();
            this.initView();
            return;
        }

        /* internal  */initView(): void
        {
            ObjCreate.createBg(5, 0, 410, 1, this, ImagesConst.SplitLine);
            var loc1=Language.getString(80408);
            var loc2=loc1.split(",");
            this.createCategory(loc2, 76);
            ObjCreate.createBg(5, 34, 410, 1, this, ImagesConst.SplitLine);
            this._pageSelecter = new PageSelectCenter(10, false, -1, KingChampionShipResultTabRender1);
            this._pageSelecter.y = 34;
            this.addChild(this._pageSelecter);
            this._pageSelecter.list.direction = GBoxDirection.VERTICAL;
            this._pageSelecter.list.rowHeight = 34;
            this._pageSelecter.list.columnWidth = 330;
            this._pageSelecter.list.setSize(420, 350);
            this._pageSelecter.list.setStyle("cellRenderer", KingChampionShipResultTabRender1);
            this._pageSelecter.pageSelecter.mode = PageSelecter.CompleteMode;
            this._pageSelecter.pageSelecter.move(154, 350);
            return;
        }

        public setDatas(arg1: Array<any>): void
        {
            if (arg1 == null) 
            {
                return;
            }
            this._pageSelecter.updateData(arg1);
            return;
        }

        /* internal */ /* var */_pageSelecter: PageSelectCenter;
    }
